<style>
    body{
        padding: 15px;
        text-align: center;
    }
    .list {
        width: 150px;
        display: inline-block;
        text-align: center;
        border: 5px solid #ddd;
        margin-left: 15px;
        padding-top: 15px;
    }

    .active{
        border-color: #F6607B;
    }

    .color {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .txt {
        width: 100%;
        margin-top: 10px;
        height: 30px;
        line-height: 30px;
    }

    .pink {
        background-color: #F6607B;
    }

    .blue {
        background-color: #00b5ff;
    }

    .orange {
        background-color: #f19149;
    }

    .green {
        background-color: #4caf50;
    }
    .black {
        background-color: #000000;
    }
    /*.btn{*/
    /*    background: #00b5ff;*/
    /*    color: #fff;*/
    /*    width: 250px;*/
    /*    text-align: center;*/
    /*    margin: 0 auto;*/
    /*    margin-top: 50px;*/
    /*}*/

</style>

<div class="tab-pane fade" id="t-color">
    <form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <div class="list {if isset($row['color']) && $row['color']=='pink'}active{/if}">
            <div class="color pink"></div>
            <div class="txt" id="pink" data-value="#F6607B">粉红色</div>
        </div>

        <div class="list {if isset($row['color']) && $row['color']=='blue'}active{/if}">
            <div class="color blue"></div>
            <div class="txt" id="blue" data-value="#0187FF">蓝色</div>
        </div>

        <div class="list {if isset($row['color']) && $row['color']=='orange'}active{/if}">
            <div class="color orange"></div>
            <div class="txt" id="orange" data-value="#f19149">橙色</div>
        </div>

        <div class="list {if isset($row['color']) && $row['color']=='green'}active{/if}">
            <div class="color green"></div>
            <div class="txt" id="green" data-value="#4caf50">绿色</div>
        </div>

        <div class="list {if isset($row['color']) && $row['color']=='black'}active{/if}">
            <div class="color black"></div>
            <div class="txt" id="black" data-value="#000000">黑色</div>
        </div>
        <input type="hidden" id="color" name="row[color]" {notempty name="row.color"} value="{$row.color|htmlentities}"{/notempty}>
        <input type="hidden" id="value" name="row[value]" {notempty name="row.value"} value="{$row.value|htmlentities}"{/notempty}>

        <input type="hidden" name="type" value="color">
        <div class="form-group layer-footer" style="margin-top: 30px">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            </div>
        </div>
    </form>
</div>
